package com.beans;

import creator.ui.graphics.Magicanvas;
import creator.ui.graphics.bean.Bean;
import java.awt.Image;

public class TipBean extends Bean {

  private Image tip;
  private int tipX;
  private int tipY;
  private int tipW;
  private int tipH;

  public void initBean(Magicanvas cvs) {
    this.tip = getImage("/res/img/tips.gif");
    trackerImage(this.tip, cvs);
    this.tipW = this.tip.getWidth(cvs);
    this.tipH = this.tip.getHeight(cvs);
    this.tipX = (172 - this.tipW / 2);
    this.tipY = (int) (307.0F - this.tipH * 0.7F);
  }

  public Image getTip() {
    return this.tip;
  }

  public int getTipX() {
    return this.tipX;
  }

  public void setTipX(int tipX) {
    this.tipX = tipX;
  }

  public int getTipY() {
    return this.tipY;
  }

  public void setTipY(int tipY) {
    this.tipY = tipY;
  }

  public int getTipW() {
    return this.tipW;
  }

  public void setTipW(int tipW) {
    this.tipW = tipW;
  }

  public int getTipH() {
    return this.tipH;
  }

  public void setTipH(int tipH) {
    this.tipH = tipH;
  }
}
